from django.db import models
from django.contrib import admin

class SysUser(models.Model):
    name = models.CharField(max_length = 20)
    pwd = models.CharField(max_length = 20)
    power = models.TextField()
    intime = models.DateTimeField()
    outtime = models.DateTimeField()

class SysUserAdmin(admin.ModelAdmin):
    list_display = ('name', 'pwd', 'power', 'intime', 'outtime')

class Files(models.Model):
    name = models.CharField(max_length = 150)
    pwd = models.CharField(max_length = 20)
    timestamp = models.DateTimeField()
    address = models.CharField(max_length = 200)
    fwork = models.CharField(max_length = 50)
    fpeople = models.CharField(max_length = 20)
    twork = models.CharField(max_length = 50)
    tpeople = models.CharField(max_length = 20)

class FilesAdmin(admin.ModelAdmin):
    list_display = ('name', 'pwd', 'timestamp', 'address', 'fwork', 'fpeople', 'twork', 'tpeople')

#admin.site.register(SysUser, SysUserAdmin, Files, FilesAdmin)
admin.site.register(Files, FilesAdmin)
